package sartoservicesync.entities.presta;

import javax.xml.bind.annotation.XmlRootElement;

import org.eclipse.persistence.oxm.annotations.XmlPath;

import sartoservicesync.entities.presta.wrapper.PrestaCategoriesWrapper;
import sartoservicesync.entities.presta.wrapper.PrestaCategoryWrapper;
import sartoservicesync.entities.presta.wrapper.PrestaMultiObjectWrapper;
import sartoservicesync.entities.presta.wrapper.PrestaSingleObjectWrapper;

@XmlRootElement
public class PrestaCategory extends PrestaEntity{
	public static final String FIELDS = "id,name";

	private String id;
	
	@XmlPath("name/language[@id='1']/text()")
	private String name;
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "PrestaCategory [id=" + id + ", name=" + name +  "]";
	}

	@Override
	public PrestaMultiObjectWrapper getMultiObjectWrapper() {
		return new PrestaCategoriesWrapper();
	}

	@Override
	public PrestaSingleObjectWrapper getSingleObjectWrapper() {
		return new PrestaCategoryWrapper();
	}

	

}
